package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the CHARGETYPE_TABLE database table.
 * 
 */
@Entity
@Table(name="CHARGETYPE_TABLE")
@NamedQuery(name="ChargetypeTable.findAll", query="SELECT c FROM ChargetypeTable c")
public class ChargetypeTable implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private long chargetypeid;

	private String chaegename;

	//bi-directional many-to-one association to ChargeprojectTable
	@OneToMany(mappedBy="chargetypeTable")
	private List<ChargeprojectTable> chargeprojectTables;

	/*//bi-directional many-to-one association to InMedicalProjectChargeDeta
	@OneToMany(mappedBy="chargetypeTable")
	private List<InMedicalProjectChargeDeta> inMedicalProjectChargeDetas;*/

/*	//bi-directional many-to-one association to OutMedicalProjectChargeDet
	@OneToMany(mappedBy="chargetypeTable")
	private List<OutMedicalProjectChargeDet> outMedicalProjectChargeDets;*/

	public ChargetypeTable() {
	}

	public long getChargetypeid() {
		return this.chargetypeid;
	}

	public void setChargetypeid(long chargetypeid) {
		this.chargetypeid = chargetypeid;
	}

	public String getChaegename() {
		return this.chaegename;
	}

	public void setChaegename(String chaegename) {
		this.chaegename = chaegename;
	}

	public List<ChargeprojectTable> getChargeprojectTables() {
		return this.chargeprojectTables;
	}

	public void setChargeprojectTables(List<ChargeprojectTable> chargeprojectTables) {
		this.chargeprojectTables = chargeprojectTables;
	}

	public ChargeprojectTable addChargeprojectTable(ChargeprojectTable chargeprojectTable) {
		getChargeprojectTables().add(chargeprojectTable);
		chargeprojectTable.setChargetypeTable(this);

		return chargeprojectTable;
	}

	public ChargeprojectTable removeChargeprojectTable(ChargeprojectTable chargeprojectTable) {
		getChargeprojectTables().remove(chargeprojectTable);
		chargeprojectTable.setChargetypeTable(null);

		return chargeprojectTable;
	}

	/*public List<InMedicalProjectChargeDeta> getInMedicalProjectChargeDetas() {
		return this.inMedicalProjectChargeDetas;
	}

	public void setInMedicalProjectChargeDetas(List<InMedicalProjectChargeDeta> inMedicalProjectChargeDetas) {
		this.inMedicalProjectChargeDetas = inMedicalProjectChargeDetas;
	}

	public InMedicalProjectChargeDeta addInMedicalProjectChargeDeta(InMedicalProjectChargeDeta inMedicalProjectChargeDeta) {
		getInMedicalProjectChargeDetas().add(inMedicalProjectChargeDeta);
		inMedicalProjectChargeDeta.setChargetypeTable(this);

		return inMedicalProjectChargeDeta;
	}

	public InMedicalProjectChargeDeta removeInMedicalProjectChargeDeta(InMedicalProjectChargeDeta inMedicalProjectChargeDeta) {
		getInMedicalProjectChargeDetas().remove(inMedicalProjectChargeDeta);
		inMedicalProjectChargeDeta.setChargetypeTable(null);

		return inMedicalProjectChargeDeta;
	}*/

	/*public List<OutMedicalProjectChargeDet> getOutMedicalProjectChargeDets() {
		return this.outMedicalProjectChargeDets;
	}

	public void setOutMedicalProjectChargeDets(List<OutMedicalProjectChargeDet> outMedicalProjectChargeDets) {
		this.outMedicalProjectChargeDets = outMedicalProjectChargeDets;
	}

	public OutMedicalProjectChargeDet addOutMedicalProjectChargeDet(OutMedicalProjectChargeDet outMedicalProjectChargeDet) {
		getOutMedicalProjectChargeDets().add(outMedicalProjectChargeDet);
		outMedicalProjectChargeDet.setChargetypeTable(this);

		return outMedicalProjectChargeDet;
	}

	public OutMedicalProjectChargeDet removeOutMedicalProjectChargeDet(OutMedicalProjectChargeDet outMedicalProjectChargeDet) {
		getOutMedicalProjectChargeDets().remove(outMedicalProjectChargeDet);
		outMedicalProjectChargeDet.setChargetypeTable(null);

		return outMedicalProjectChargeDet;
	}*/

}